<%@ Page Language="C#" MasterPageFile="~/Masterpages/Default.master" AutoEventWireup="true"
    CodeBehind="InstallSchema.aspx.cs" Inherits="Blazing.UI.Cms.Admin.InstallSchema"
    Title="Install Database" %>

<%@ Register assembly="Blazing.UI.Cms" namespace="Blazing.Web.Controls" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Schema Maintenance</h1>
    <br />
    <div style="float: left;">
        <img src="~/images/DATABASE.gif" runat="server" /></div>
    <div style="display: block; margin-left:50px">
        <br />
        <h2>Install Schema + Data</h2>
        <span style="color: Red;"><small>Note: Clicking Install Schema will cause loss 
        of all existing data.</small></span>
        <br /><br />
        Select a saved xml file to install with schema (optional)<br />
        <asp:FileUpload ID="FileUploadXmlData" runat="server" />
        <br /><br />
        <asp:Button ID="ButtonInstall" runat="server" Text="Install Schema + Data" 
            OnClick="ButtonInstall_Click" 
            OnClientClick="return confirm('This will destroy all data currenting in the database, are you really sure?');" />
        &nbsp;<asp:Button ID="ButtonImport" runat="server" onclick="ButtonImport_Click" 
            Text="Only Import Data" />
        &nbsp;<asp:Button ID="ButtonImportBlogML" runat="server" 
            onclick="ButtonImportBlogML_Click" Text="Import BlogML" />
        <asp:Label ID="LabelStatus" runat="server" EnableViewState="False" Text="Schema Installed..."
            Visible="False"></asp:Label>
    </div>
    <hr />
    <div style="display: block; margin-left:50px">
    <h2>
        Export Data 
    </h2>
    <small>Save mapped tables as a serialized xml file.<br />
        </small>
        <cc1:OptGroupDropDownList ID="OptGroupDropDownList1" runat="server" Size="10">
        </cc1:OptGroupDropDownList>
        <br /><br />
    <asp:Button ID="ButtonDownloadJSON" runat="server" OnClick="ButtonDownloadJSON_Click"
        Text="Save As Xml..." />
        </div>
    <br />
    <br />
</asp:Content>
